home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / include / linux / stacktrace.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-12-24  |  663 b   |  25 lines

  1. #ifndef __LINUX_STACKTRACE_H
  2. #define __LINUX_STACKTRACE_H
  3.  
  4. struct task_struct;
  5.  
  6. #ifdef CONFIG_STACKTRACE
  7. struct stack_trace {
  8.     unsigned int nr_entries, max_entries;
  9.     unsigned long *entries;
  10.     int skip;    /* input argument: How many entries to skip */
  11. };
  12.  
  13. extern void save_stack_trace(struct stack_trace *trace);
  14. extern void save_stack_trace_tsk(struct task_struct *tsk,
  15.                 struct stack_trace *trace);
  16.  
  17. extern void print_stack_trace(struct stack_trace *trace, int spaces);
  18. #else
  19. # define save_stack_trace(trace)            do { } while (0)
  20. # define save_stack_trace_tsk(tsk, trace)        do { } while (0)
  21. # define print_stack_trace(trace, spaces)        do { } while (0)
  22. #endif
  23.  
  24. #endif
  25.